// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2005-4-30

#ifndef __CSUMPEFILE_H_COMMON_GUARD__
#define __CSUMPEFILE_H_COMMON_GUARD__

#pragma once

namespace JoyGuard
{

//##ModelId=44CF17BF0030
class CSumSect
{
public:
	//##ModelId=44CF17BF0031
    DWORD m_rva;
	//##ModelId=44CF17BF003E
    DWORD m_size;
	//##ModelId=44CF17BF003F
    DWORD m_csum;
};

//##ModelId=44CF17BF0040
class CSumPeFile
{
public:
	//##ModelId=44CF17BF0041
    static bool BuildSectCSum(const BYTE* baseAddr, const char* sectName, CSumSect& ss);
	//##ModelId=44CF17BF004F
    static bool BuildSectCSum(const char* peFile, const char* sectName, CSumSect& ss);
};

} // namespace JoyGuard

#endif  // __CSUMPEFILE_H_COMMON_GUARD__
